package com.qyer.lxp.model;

import java.io.Serializable;

/**
 *
 * 返回xml的头部信息
 * Created by jiangping on 16/5/11.
 */

public class Response<Ｔ extends Object> implements Serializable{

    private static final long serialVersionUID = -3313196630346594961L;

    /**
     * 命名空间
     */
    private String nameSpace;
    /**
     * 状态码
     */
    private int status = 200;

    /**
     * 状态内容
     */
    private String msg = "OK";

    /**
     * header结点
     */
    private Ｔ data;

    public String getNameSpace() {
        return nameSpace;
    }

    public void setNameSpace(String nameSpace) {
        this.nameSpace = nameSpace;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Ｔ getData() {
        return data;
    }

    public void setData(Ｔ data) {
        this.data = data;
    }

    @Override
    public String toString() {
        return "Response{" +
                "nameSpace='" + nameSpace + '\'' +
                ", status=" + status +
                ", msg='" + msg + '\'' +
                ", data=" + data +
                '}';
    }
}
